<!-- 热门话题 -->
<wxs src="../../utils/common.wxs" module="filter" />
<view class='floatView'>
	<image wx:if='{{toTop}}' class="edit" src="../../image/shequ/to-top.png" bindtap="turnPage"/>
	
</view>

<login wx:if='{{showLogin}}' bindloginSuccess="onLoginSuccess" bindcannel='onCannel'></login>
<view class='topic-view'>
    <view class="tj_left">
            <view>
               <image class='po-icon' src="../../image/position_icon.png" />
              
               <label bindtap='turnCity'>{{city}}</label>
            </view>
          
   </view>
   <view class='item'>
      <!--  <label class='chooseCity' bindtap='turnCity'>
          <image class='po-icon' src="../../image/position_icon.png" />
          {{city}}
       </label> -->
   	<label bindtap="getBbs" data-code='{{item.type}}'  wx:for="{{topic}}" class="{{item.select}}">{{item.name}}</label>
   </view>     
</view>
<!-- <view class='topic-view1'>
   <view class='title'>热门话题</view> 
   <view class='item'>
   	<label wx:for="{{topic}}">{{item.name}}</label>
   </view>     
</view> -->
<!-- 话题 -->
<view class='bbs'>
	<view class='item' wx:for="{{bbsArr}}" bindtap="turnDetail" data-code='{{item}}'>
		<view class='info'  >
			<image class="image" src="{{item.wxUser.avatarUrl}}" />
			<view  wx:if='{{item.browseNum<10}}' class='name'>{{item.wxUser.nickName}}<image src="../../image/shequ/hot.png" /></view>
			<view wx:if='{{9<item.browseNum&&item.browseNum<51}}' class='name'>{{item.wxUser.nickName}}<image  src="../../image/shequ/hot.png" /><image src="../../image/shequ/hot.png" /></view>
			<view wx:if='{{item.browseNum>51}}' class='name'>{{item.wxUser.nickName}}<image src="../../image/shequ/hot.png" /><image src="../../image/shequ/hot.png" /><image src="../../image/shequ/hot.png" /></view>
			<view class='time'>
				<view>
				   <image src="../../image/time_icon.png" /><text>{{filter.flitTime(item.updated)}} </text>
				</view>
				<view>
					<image src="../../image/position_gray_icon.png" /><text>{{item.city}}</text>
				</view>
		    
		    </view>
		</view>
		<view class='content'>{{item.title}}</view>
		<view class='image-list'>
			<image  wx:for="{{item.wxArticlesPic}}" wx:if='{{index<3}}' class="image" src="{{item.url}}" />
			
		</view>
		<view class='label'>#{{item.hotTopicTypeName}}</view>
		<!-- <view class='speakList' >
			<image class="image" src="../../image/linshi/linshi2.jpg" />
			<view class='note'><span>塔吊小李: </span>收个学徒, 在武汉 . 如果有合适的请推荐给我.</view>
			<view class='more'>查看更多评论</view>
			 <image class="edit" src="../../image/shequ/publish_posts.png" /> 
		</view> -->
		<view class='nums'>
			<view><image class="image" src="../../image/shequ/browse.png" /><span>{{item.browseNum}}</span></view>
			<view><image class="image" src="../../image/shequ/comment.png" /><span>{{item.commentNum}}</span></view>
			<view  wx:if='{{item.isLikes==0}}'><image bindtap="dianzanM" data-code='{{item.id}}'  class="image"  src="../../image/shequ/fabulous.png" /><span>{{item.likesNum}}</span></view>
			<view  wx:if='{{item.isLikes==1}}'><image bindtap="dianzanF" data-code='{{item.id}}'  class="image"  src="../../image/shequ/fabulous_hover.png" /><span>{{item.likesNum}}</span></view>

			<!-- <view><image class="image" src="../../image/shequ/fabulous_hover.png" /><span>{{item.likesNum}}</span></view> -->
		</view>

	</view>
</view>
<view class='more' wx:if='{{bbsArr.length>20}}'>{{moreText}}</view>